import React, { Component } from 'react'
import Login from './pages/login/login'
import Register from './pages/register/register'
import Main from './pages/main/main'
import BossInfo from './pages/boss_info/bossInfo'
import JobSeekerInfo from './pages/job_seeker_info/jobSeekerInfo'
import Boss from './pages/boss/boss'
import JobSeeker from './pages/job_seeker/jobSeeker'
import Message from './pages/message/message'
import Personal from './pages/personal/personal'
import Chat from './pages/chat/chat'
import NotFound from './compoments/not_found/notFound'


const Routes = [
    { path: "/login", name: "login", component: Login },
    { path: "/register", name: "register", component: Register },
    { path: "", name: "main", component: Main,
        routes:[
            { path: "/bossInfo", name: "bossInfo", component: BossInfo, title:'信息完善' },
            { path: "/jobSeekerInfo", name: "jobSeekerInfo", component: JobSeekerInfo,  title:'信息完善' },

            { path: "/jobSeeker", name: "jobSeeker", component: JobSeeker, title:'老板列表', icon:'boss', footerNav:'footerNav' },
            { path: "/boss", name: "boss", component: Boss, title: '求职者列表', icon:'jobSeeker', footerNav:'footerNav' },
            { path: "/message", name: "message", component: Message, title:'消息列表', icon:'message', footerNav:'footerNav' },
            { path: "/personal", name: "personal", component: Personal, title:'个人中心', icon:'personal', footerNav:'footerNav' },
            { path: `/chat/:userId`, name: "chat", component: Chat },
            { path: "", name: "notFound", component: NotFound }

        ]
    }
]

export default Routes;